package com.lanou3g.ptp.taskstudent.service;

import com.lanou3g.ptp.entity.Student;
import com.lanou3g.ptp.entity.TaskStudent;

import java.util.ArrayList;
import java.util.List;


public interface TaskStudentService {


    List<TaskStudent> findAll(Integer page, Integer size);

    TaskStudent findById(Long id);

    void insert(ArrayList<TaskStudent> taskStudents);

    void update(Long id, TaskStudent taskStudent);

    void delete(Long id);

    void deletes(Long[] ids);

    void deleteByTaskId(Long taskId);

    void deletesByTaskIds(Long[] ids);

    ArrayList<Long> findByTaskId(Long id);

    List<TaskStudent> findAllByStudentId(Long studentId);

    boolean ifStudentInTask(Long studentId, Long taskId);

    List<Student> findStudentsByTaskId(Long taskId);

    Boolean taskApply(Student student, long id);
}
